package com.lagou.task03;

/**
 *
 * 上网套餐
 * 特征：上网流量、每月资费
 * 行为：显示所有套餐信息
 *
 * */

public class InternetMeal extends AbstractMeal implements InternetService {

    //上网流量
    double flowG;

    //每月资费
    //double mealPrice;

    public double getFlowG() {
        return flowG;
    }

    public void setFlowG(double flowG) {
        this.flowG = flowG;
    }

    @Override
    public void show() {
        System.out.println("当前流量套餐：\n" + "上网流量：" + getFlowG() + "G");
        System.out.println("每月资费" + getMealPrice() + "元");
    }

    @Override
    public void surfTheInternet(double flowG, SIMCard card) {
        System.out.println("用户上网");
    }
}
